package month4.day5.computer;

public class RAM_EMC implements EMS{
    private String brand;
    private double capacity;//容量
    @Override
    public void work() {
        System.out.println("内存工作；输入和输出数据");
    }

    @Override
    public String toString() {
        return "这个内存类型：" + brand+
                ", 容量：" + capacity+"G";
    }

    public RAM_EMC(String brand, double capacity) {
        this.brand = brand;
        this.capacity = capacity;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getCapacity() {
        return capacity;
    }

    public void setCapacity(double capacity) {
        this.capacity = capacity;
    }
}
